package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.WwCustomerBlacklist;
import com.xjscrm.console.param.list.WwCustomerListQuery;
import com.xjscrm.console.vo.WwCustomerBlackVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlackListMapper {
     int addBlackList(WwCustomerBlacklist wwCustomerBlacklist);

     List<WwCustomerBlackVo> getBlackList(WwCustomerListQuery wwCustomerBlackQuery);

     int deleById(@Param("id") Long id, @Param("merId") Long merId);

    WwCustomerBlacklist getById(@Param("id") Long id, @Param("merId") Long merId);


    List<String> selectListOfWxIdByWxIds(@Param("merId") Long merId, @Param("wxIds") List<String> wxIds);

    WwCustomerBlacklist selectByWxid(@Param("merId") Long merId, @Param("wxId") String wxid);

}
